<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>探花交友后台管理</title>
    <script src="js/vue.js"></script>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .el-aside, .el-menu-vertical-demo, .el-menu-item {
            background-color: #242256;
            border-color: #242256;
        }

        .header-img {
            width: 100px;
            margin-top: 20px;
        }

        .el-aside-main {
            height: 541px;
        }

        .el-container {
            height: 100%;
        }

        .el-main {
            margin: 0px;
            padding: 0px;
        }

        html, body {
            height: 100%;
        }
    </style>
</head>
<body>
<div id="app">
    <!--容器-->
    <el-container>
        <el-aside width="18%" height="100%">
            <el-header>
                <div style="margin-top: 50px; margin-bottom: 50px">
                    <img src="img/tanhua-logo@2x.8e008fb6.png" style="width: 150px">
                    <hr/>
                </div>
            </el-header>
            <el-main class="el-aside-main"
            >
                <!--左侧导航菜单 start -->
                <el-menu class="el-menu-vertical-demo">
                    <el-submenu index="1">
                        <template slot="title">
                            <i class="el-icon-menu"></i>
                            <span style="color: aliceblue">用户管理</span>
                        </template>
                        <el-menu-item index="1-1" @click="locationManager" style="color: aliceblue">用户位置查看
                        </el-menu-item>
                    </el-submenu>
                    <el-submenu index="2">
                        <template slot="title">
                            <i class="el-icon-menu"></i>
                            <span style="color: aliceblue">测灵魂管理</span>
                        </template>
                        <el-menu-item index="2-1" @click="soulPaperManager" style="color: aliceblue">测灵魂试卷管理
                        </el-menu-item>
                    </el-submenu>
                </el-menu>
                <!--左侧导航菜单 end -->
            </el-main>
            <el-footer class="el-aside-footer">
                <div>
                    <hr>
                    <tr>
                        <td>
                            <img src="img/sidebar-touxiang@2x.072eb55c.png"
                                 style="width: 36px;height: 36px;margin-left: 10px;margin-top: 5px">
                        </td>
                        <td class="el-aside-footer-username">
                            <span style="vertical-align: middle; color: aliceblue;margin-left: 20px">admin</span>
                            <vr/>
                        </td>
                        <td>
                            <img src="img/back.png" style="width: 25px;height: 25px;margin-left: 40px">
                        </td>
                    </tr>
                </div>
            </el-footer>
        </el-aside>
        <el-main class="el-main" style="overflow-y: hidden">
            <!--主体内容 start-->
            <iframe :src="iframeSrc" frameborder="0"
                    style="top:80px;left: 120px; width: 100%;height:100%"></iframe>
            <!--主体内容 end-->
        </el-main>
    </el-container>

</div>
</body>

<script>
    new Vue({
        el: '#app',
        data: {
            iframeSrc: "welcome.html",
        },
        methods: {
            locationManager: function () {
                this.iframeSrc = "locationList.html"
            },
            soulPaperManager() {
                this.iframeSrc = "paperManager.html"
            }
        }
    })
</script>
</html>